import Vue from 'vue'
import Router from 'vue-router'
// import Layout  from '@/components/common/Layout.vue'
// import Layout  from '@/components/search.vue'
// import Layout  from '@/components/topCatalog.vue'
import Layout from '@/components/common/Layout.vue'
// import Filemanage  from '@/pages/filemanage.vue'
import Filemanage from '@/pages/Filepanel.vue' //列表
// import Filemanage  from '@/pages/filemanage.vue'
import Login from '@/pages/login.vue' // 登录页
import ModifyInfo from '@/pages/modifyInfo.vue' // 修改用户信息
import Message from '@/pages/message.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
    },
    {
      path: '/layout',
      name: 'Layout',
      component: Layout,
      children: [
        {
          path: '/',
          name: 'Filemanage',
          component: Filemanage,
        },
        {
          path:'/personFile',
          name: 'Filemanage',
          component: Filemanage,
        },
        {
          path:'/recycleBin',
          name: 'Filemanage',
          component: Filemanage,
        },
        {
          path: '/modifyinfo',
          name: 'ModifyInfo',
          component: ModifyInfo,
        },
        {
          path: '/message',
          name: 'Message',
          component: Message,
        },
      ]
    }
  ]
})
